package com.bwie.service;/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.service
 * @Project：zg6_yuekao
 * @name：ChargingService
 * @Date：2024/5/17 12:35
 */

import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.common.domain.ChargingStation;
import com.bwie.common.domain.Vehicle;
import com.bwie.common.domain.request.ChargingRequest;
import com.bwie.common.result.PageResult;
import com.bwie.common.result.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

/**
 *@Author：ShenJiaFeng
 *@Package：com.bwie.service
 *@Project：zg6_yuekao
 *@name：ChargingService
 *@Date：2024/5/17 12:35
 *@Description:
 */
public interface ChargingService extends IService<ChargingStation> {
    PageResult<ChargingStation> chargingList(ChargingRequest chargingRequest);

    //修改字典值同时修改redis中
    void updateType(ChargingStation chargingStation);

    //图片
    Result fastUpload(MultipartFile multipartFile);
    //收藏接口
    void addCollect(Long chargingId);


    void updStatus(Long chargingId);


    void updStatusTwo(@Param("chargingId") Long chargingId);

    //添加车辆
    void addVehicle(Vehicle vehicle);

    //设置车辆状态为默认
    void updateVehicleStatus(Vehicle vehicle);

    //取消默认
    void updateVehicleStatusTwo(Vehicle vehicle);


}
